<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>汇丰晋信天才儿童的添财计划—天才基因早发现</title>
<link href="css/main.css" media="screen" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #eb1a11}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
	String.prototype.trim= function(){  
    // 用正则表达式将前后空格  
    // 用空字符串替代。  
    	return this.replace(/(^\s*)|(\s*$)/g, "");  
	}

	function submitForm(){
		if(document.infoForm.uname.value.trim()==''){
			alert('请填写您的姓名!');
			document.infoForm.uname.focus();
			return;
		}
		
		if(!validatePhone()){
			alert('请填写您有效的手机号码!');
			document.infoForm.phone.value = '';
			document.infoForm.phone.focus();
			return;
		}
		if(!validateEmail()){
			alert('请填写您有效的Email!');
			document.infoForm.email.value = '';
			document.infoForm.email.focus();
			return;
		}
		document.infoForm.submit();
	}

	function validateEmail(){
	    var temp = document.getElementById("email");
        //对电子邮件的验证
        var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
        if(!myreg.test(temp.value)){
            return false;
        }
        return true;
	}

	function validatePhone(){
	    var temp = document.getElementById("phone");
	    var flag = "true";
        //对电话号码的验证
        //var mobile1 = /^(13+\d{9})|(159+\d{8})|(158+\d{8})|(153+\d{8})$/; //手机号码
        var mobile1 = /^(13+\d{9})|(15+\d{9})|(18+\d{9})$/;
        //var phone = /^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/;//固话
        
        //对手机进行判断
        if(!mobile1.test(temp.value)){
        	flag = "false";
       	}
       	//对固话进行判断
       	//if(phone.test(temp.value) && flag=="false"){
        // 	flag = "true";
       	//}
       	if(flag == "false"){
            return false;
       	}
       	return true;
	}
</script>
</head>

<body>
<div class="head">
  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','950','height','222','src','images/top','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent','movie','images/top' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="222">
    <param name="movie" value="images/top.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="images/top.swf" width="950" height="222" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
</noscript></div>
<div class="top">
  <div class="nav">
    <div class="nav01"><a href="<%="Y".equals(session.getAttribute("userAdd"))?"zjcy-1.jsp":"zjcy.jsp"%>" class="demo">直接参与</a></div>
    <div class="nav02"><a href="jxsz.jsp" class="demo">奖项设置</a></div>
    <div class="nav02"><a href="cyff.jsp" class="demo">参与方法</a></div>
    <div class="nav02"><a href="lhjy.jsp" class="demo">联合基因</a></div>
    <div style="clear:both;"></div>
  </div>
  <div class="top_left01">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="140" align="center" valign="top"><img src="images/pic01.png" width="232" height="136" /></td>
      </tr>
      <tr>
        <td>现在参与，就有可能获得一等奖55000元，所有奖品总价值80万的巨额奖项。</td>
      </tr>
      <tr>
        <td align="center">活动截止日期：11月30日</td>
      </tr>
    </table>
  </div>
  <form name="infoForm" method="post" action="zjcy-1.jsp">
  <div class="top_right01">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="50" colspan="2" align="center" class="STYLE1">欢迎您参汇丰晋信天才儿童的添财计划<br />
        —天才基因早发现</td>
      </tr>
      <tr>
        <td width="80" height="30" align="right">姓名：</td>
        <td><input type="text" name="uname" id="uname"/></td>
      </tr>
      <tr>
        <td width="80" height="30" align="right">手机：</td>
        <td><input type="text" name="phone" id="phone" /></td>
      </tr>
      <tr>
        <td width="80" height="30" align="right">邮箱：</td>
        <td><input type="text" name="email" id="email" /></td>
      </tr>
      <tr>
        <td height="70" colspan="2" align="center"><a href="javascript:submitForm()"><img src="images/icon01.png" width="98" height="33" border="0" /></a></td>
      </tr>
    </table>
  </div>
  </form>
</div>
</body>
</html>
